package com.gxa.service.impl;

import com.gxa.mapper.StoreMapper;
import com.gxa.pojo.Store;
import com.gxa.service.StoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class StoreServiceImpl implements StoreService {
    @Autowired
    StoreMapper storeMapper;
    @Override
    public List<Store> findStoreByPage(Integer page, Integer size) {
        return storeMapper.findStoreByPage(page,size);
    }

    @Override
    public List<Store> findAll() {
        return storeMapper.findAll();
    }

    @Override
    public List<Store> selectStoreByNameAndManagerName(Map map) {
        return storeMapper.selectStoreByNameAndManagerName(map);
    }

    @Override
    public Integer insertStore(Map map) {
        return storeMapper.insertStore(map);
    }

    @Override
    public Integer deleteStoreById(Integer id) {
        return storeMapper.deleteStoreById(id);
    }

    @Override
    public Integer findAllStore() {
        return storeMapper.findAllStore();
    }

    @Override
    public Integer updateStore(Map map) {
        return storeMapper.updateStore(map);
    }

    @Override
    public Integer updateState(Map map) {
        return storeMapper.updateState(map);
    }

    @Override
    public Store findStoreByName(String name) {
        return storeMapper.findStoreByName(name);
    }

    @Override
    public Integer findAllStore2(Map map) {
        return storeMapper.findAllStore2(map);
    }
}